package com.example.lock;

/**
 * 线程实现
 *
 * @author mingtian
 */
public class RedisThread extends Thread {

    private LockService lockService;

    public RedisThread(LockService lockService) {
        this.lockService = lockService;
    }

    @Override
    public void run() {
        try {
            lockService.locks();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
